class Model < ActiveRecord::Base
  has_many :permission
  #@@permission_code = 6
  #def self.permission_code
  #  return @@permission_code
  #end
  
  attr_accessor :user_log
  def to_audit
    return "ID:#{id}"+","+"Code:#{code}"+","+"Name:#{name}"
  end
  
  def to_combo
    return [self.name,self.name]
  end
end
